#pragma once
#include "mytypes.h"
#include "dynamics.h"
#include "RigidBody.h"
#include "Joint.h"

namespace poly
{
	// A Spiral constraint
	// Keeps two bodies connected at one point,
		// with a damped rotational spring at the joint
	class Spiral : public Joint
	{
	public:
		Spiral();

		void apply(float dt);

		float torqueDensity;
		float friction;
		float deviation;
		float3 axis; // axis local to body1
	};
}
